#include <iostream>
#include <iomanip>
using namespace std;
#include "EmployeeClass.h"
#include <cstring>
#include <new>
int Employee::count = 0;
int Employee::countPublic = 0;
int Employee::getCount()
{
	return count;
}
Employee::Employee(const char* firName, const char* lasName)
{
	int length = strlen(firName);
	length = (length < 20) ? length : 19;
	strncpy(firstName, firName, length);
	firstName[length] = '\0';
	
	length = (length < 20) ? length : 19;
	strncpy(lastName, lasName, length);
	lastName[length] = '\0';
	
	count++;
	countPublic++;
	cout << "Employee object constructor:" << firstName << " " << lastName << "\n";	
}
Employee::~Employee()
{
	cout << "Employee object destructor:" << firstName << " " << lastName << "\n";	
	//delete [] firstName;
	//delete [] lastName; 
	count--;
	countPublic--;
}
void Employee::print() const
{
	cout << firstName << " " << lastName << "\n";
}
const char *Employee::getFirstName() const
{
	return firstName;
}
const char *Employee::getLastName() const
{
	return lastName;
}
